/*
 * @ : Copyright (c) 2021 Phytium Information Technology, Inc. 
 *  
 * SPDX-License-Identifier: Apache-2.0.
 * 
 * @Date: 2021-08-26 11:07:55
 * @LastEditTime: 2021-08-26 17:42:33
 * @Description:  This files is for 
 * 
 * @Modify History: 
 *  Ver   Who        Date         Changes
 * ----- ------     --------    --------------------------------------
 */
#ifndef BSP_DRIVERS_ETH_F_GMAC_PHY_AR308X_H
#define BSP_DRIVERS_ETH_F_GMAC_PHY_AR308X_H

#ifdef __cplusplus
extern "C"
{
#endif

#include "kernel.h"
#include "gmac.h"

/* phy id */
#define GMAC_AR803X_PHY_ID1             0x4D
#define GMAC_AR803X_PHY_ID2             0x4D

/* address and data port */
#define GMAC_AR803X_DEBUG_ADDR			0x1DU
#define GMAC_AR803X_DEBUG_DATA			0x1EU

/* debug register offset */
#define GMAC_AR803X_DEBUG_HIB_CTRL_REG     0xBU

/* hib ctrl and auto-negotiation register */
#define GMAC_AR803X_PS_HIB_EN           BIT(15)

u32 GmacAr803xDisableHibernate(GmacCtrl *pCtrl);

#ifdef __cplusplus
}
#endif

#endif // !